Other Constants

The following constants are available globally.

  • An NSNumber object containing a floating-point number that specifies the width and height (measured in points) at which the map displays each raster image tile when the map’s zoom level is an integer. The raster tile source scales its images up or down when the map’s zoom level falls between two integers.

    The default value for this option is 512. Version 4 of the Mapbox Maps API requires a value of 256, as do many third-party tile servers, so consult your provider’s documentation for the correct value.

    This option is only applicable to DingiRasterTileSource objects; it is ignored when initializing DingiVectorTileSource objects.

    Declaration

    Objective-C

    extern const DingiTileSourceOption _Nonnull DingiTileSourceOptionTileSize

    Swift

    static let tileSize: DingiTileSourceOption
  • A version number identifying the default version of the Mapbox Streets style obtained through the -streetsStyleURL method. This version number may also be passed into the -streetsStyleURLWithVersion: method.

    The value of this constant generally corresponds to the latest released version as of the date on which this SDK was published. You can use this constant to ascertain the style used by DingiMapView and DingiTilePyramidOfflineRegion when no style URL is specified. Consult the Mapbox Styles API documentation for the most up-to-date style versioning information.

    Warning

    The value of this constant may change in a future release of the SDK. If you use any feature that depends on a specific aspect of a default style – for instance, the minimum zoom level that includes roads – you may use the current value of this constant or the underlying style URL, but do not use the constant itself. Such details may change significantly from version to version.

    Declaration

    Objective-C

    static const NSInteger DingiStyleDefaultVersion = 10

    Swift

    let DingiStyleDefaultVersion: Int
  • Indicates an error occurred in the Mapbox SDK.

    Declaration

    Objective-C

    extern const NSErrorDomain _Nonnull DingiErrorDomain

    Swift

    let DingiErrorDomain: String
  • An NSString identifying the linear interpolation type in an NSExpression.

    This attribute corresponds to the linear value in the interpolate expression operator in the Mapbox Style Specification.

    Declaration

    Objective-C

    extern const DingiExpressionInterpolationMode _Nonnull DingiExpressionInterpolationModeLinear

    Swift

    static let linear: DingiExpressionInterpolationMode
  • An NSString identifying the expotential interpolation type in an NSExpression.

    This attribute corresponds to the exponential value in the interpolate expression operator in the Mapbox Style Specification.

    Declaration

    Objective-C

    extern const DingiExpressionInterpolationMode _Nonnull DingiExpressionInterpolationModeExponential

    Swift

    static let exponential: DingiExpressionInterpolationMode
  • An NSString identifying the cubic-bezier interpolation type in an NSExpression.

    This attribute corresponds to the cubic-bezier value in the interpolate expression operator in the Mapbox Style Specification.

    Declaration

    Objective-C

    extern const DingiExpressionInterpolationMode _Nonnull DingiExpressionInterpolationModeCubicBezier

    Swift

    static let cubicBezier: DingiExpressionInterpolationMode
  • Project version number for Mapbox.

    Declaration

    Objective-C

    extern double DingiMapVersionNumber

    Swift

    var DingiMapVersionNumber: Double
  • Project version string for Mapbox.

    Declaration

    Objective-C

    extern const unsigned char DingiMapVersionString[]